package cn.ltpcloud.admin.web.controller;


import cn.ltpcloud.admin.web.service.UserService;
import cn.ltpcloud.common.entity.AjaxResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiejiebiezheyang
 * @since 2024-03-11 11:00
 */
@Tag(name = "管理-用户")
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("/profiles")
    @Operation(summary = "用户信息")
    public AjaxResult profiles() {
        return userService.profiles();
    }
}
